#include "UserInputEventReceiver.h"

UserInputEventReceiver::UserInputEventReceiver():	IEventReceiver(){
	eventProcessState = false;
};

bool UserInputEventReceiver::OnEvent(const SEvent& event){
	if(eventProcessState){
		
		if(event.EventType == EET_MOUSE_INPUT_EVENT){

			if(event.MouseInput.isLeftPressed())
				//if left mouse is pressed do that
			if(event.MouseInput.isRightPressed())
				//if right mouse is pressed do that
			if(event.MouseInput.isMiddlePressed())
				//if middle mouse is pressed do that
			if(event.MouseInput.Wheel != 0.0)
				//if mouse wheel is rotated do that
			

			return true;
		}
		
		if(event.EventType == EET_KEY_INPUT_EVENT){

			//if a key is pressed do that

		}
		
		return false;
	}
	return false;
}

void UserInputEventReceiver::StartEventProcess(){
	eventProcessState = true;

}

void UserInputEventReceiver::EndEventProcess(){
	eventProcessState = false;

}